home *** CD-ROM | disk | FTP | other *** search
- #include "FixGraf.h"
-
-
- void FixRectToRect(fixRect *fr, Rect *r)
- {
- r->top = FixToInt(fr->top);
- r->left = FixToInt(fr->left);
- r->bottom = FixToInt(fr->bottom);
- r->right = FixToInt(fr->right);
- }
-
- void RectToFixRect( Rect *r, fixRect *fr)
- {
- fr->top = ff(r->top);
- fr->left = ff(r->left);
- fr->bottom = ff(r->bottom);
- fr->right = ff(r->right);
- }
-
-
- void PointToFixPoint( Point *p, fixPt *fp)
- {
- fp->h = ff(p->h);
- fp->v = ff(p->v);
- }
-
-
- void FixPointToPoint( fixPt *fp, Point *p)
- {
- p->h = FixToInt(fp->h);
- p->v = FixToInt(fp->v);
- }
-
- void OffsetFixRect(fixRect *fr, fixPt *fp)
- {
- fr->top += fp->v;
- fr->left += fp->h;
- fr->bottom += fp->v;
- fr->right += fp->h;
- }
-